import request from '@/api/request'

const baseUri = 'api/carousel'

export function edit(data) {
  return request({
    url: baseUri,
    method: 'put',
    data
  })
}

export function del(ids) {
  return request({
    url: baseUri,
    method: 'delete',
    data: ids
  })
}

export function show() {
  return request({
    url: baseUri+'/show',
    method: 'get'
  })
}

export default { edit, del }
